package com.sky.mapper;

import com.sky.annotation.AutoFill;
import com.sky.entity.DishFlavor;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DishFlavorMapper {
    List<DishFlavor> getByDishId(Integer id);

    void deleteOldFlavor(Long id);

    @AutoFill(value = OperationType.INSERT)
    void add(List<DishFlavor> flavors);

    void delete(List<Integer> ids);
}
